import request from '@/utils/request';


//获取学员证书
export const getCertificate = (studentId) => {
    return request({
        url: '/eduM2/certificate/getCertificateByStudentId/' + studentId,
        method: 'get',
    })
}

//颁发学员证书
export const issueCertificate = (params) => {
    return request({
        url: '/eduM2/certificate/issueCertificate',
        method: 'post',
        data: params
    })
}

//分页查询学员证书
export const getCertificatePage = (params, current, limit, companyId) => {
    return request({
        url: '/eduM2/certificate/pageCertificateCondition/' + companyId + '/' + current + '/' + limit,
        method: 'post',
        data: params
    })
}




